package Thread;

public class NameThread {
    public static void main(String[] args) {
        Thread t1=new Thread();
        Thread t2=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("传入Runnable对象~~");
            }
        });
        Thread t3=new Thread("线程三");
        t3.setName("线程三");
        Thread t4=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("传入Runnable对象~~");
            }
        },"线程四");
    }
}
